package oop2;

public class MakerTest {

	public static void main(String[] args) {
		// 构建一个榨汁机
		JuiceMaker jm = new JuiceMaker();
		jm.brand = "九阳";
		jm.color = "黄";
		jm.watt = 45;
		jm.start();
		String shuiguo = "苹果";
		// 接受方法返回的结果
		String result = jm.makeJuice(shuiguo);
		System.out.println("马老师买了" + shuiguo + ",喝到了" + result);
		String result2 = jm.makeJuice("耗子尾");
		System.out.println("马老师喝到了" + result2);

		// jm.makeJuice("草莓");
		//
		// System.out.println(jm.makeJuice("梨子"));
		// String str = "西瓜";
		// jm.makeJuice(str);
		// int i,j,k;

		System.out.println(">>>>>>>>>>>>>>>>>>>>>>>>>>>>>");
		String c1 = "梨子", c2 = "柠檬";
		String r3 = jm.makeJuice2(c1, c2);
		System.out.println("laoliu喝到了" + r3);
	}

}
